package com.artislong.entity;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.neo4j.core.schema.GeneratedValue;
import org.springframework.data.neo4j.core.schema.Id;
import org.springframework.data.neo4j.core.schema.Node;
import org.springframework.data.neo4j.core.schema.Relationship;

/**
 * @author 陈敏
 * @version Teacher.java, v 1.0 2025 05 11 11:09 chenmin Exp $
 * Created on 2025 05 11
 */
@Node
@Data
@Accessors(chain = true)
public class Teacher {

    @Id
    @GeneratedValue
    private Long id;

    private String name;
    private Integer age;
    private String sex;

    @Relationship(type = "teacher_student", direction = Relationship.Direction.OUTGOING)
    private TeacherStudentRelationShip teacherStudentRelationShip;
}
